package com.ruoyi.pointsystem.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.pointsystem.mapper.Xy01Mapper;
import com.ruoyi.pointsystem.domain.Xy01;
import com.ruoyi.pointsystem.service.IXy01Service;
import com.ruoyi.common.core.text.Convert;

/**
 * 新亚01Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-04-19
 */
@Service
public class Xy01ServiceImpl implements IXy01Service 
{
    @Autowired
    private Xy01Mapper xy01Mapper;

    /**
     * 查询新亚01
     * 
     * @param id 新亚01主键
     * @return 新亚01
     */
    @Override
    public Xy01 selectXy01ById(Long id)
    {
        return xy01Mapper.selectXy01ById(id);
    }

    /**
     * 查询新亚01列表
     * 
     * @param xy01 新亚01
     * @return 新亚01
     */
    @Override
    public List<Xy01> selectXy01List(Xy01 xy01)
    {
        return xy01Mapper.selectXy01List(xy01);
    }

    /**
     * 新增新亚01
     * 
     * @param xy01 新亚01
     * @return 结果
     */
    @Override
    public int insertXy01(Xy01 xy01)
    {
        return xy01Mapper.insertXy01(xy01);
    }

    /**
     * 修改新亚01
     * 
     * @param xy01 新亚01
     * @return 结果
     */
    @Override
    public int updateXy01(Xy01 xy01)
    {
        return xy01Mapper.updateXy01(xy01);
    }

    /**
     * 批量删除新亚01
     * 
     * @param ids 需要删除的新亚01主键
     * @return 结果
     */
    @Override
    public int deleteXy01ByIds(String ids)
    {
        return xy01Mapper.deleteXy01ByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除新亚01信息
     * 
     * @param id 新亚01主键
     * @return 结果
     */
    @Override
    public int deleteXy01ById(Long id)
    {
        return xy01Mapper.deleteXy01ById(id);
    }
}
